package com.csc591;


import android.app.Activity;
import android.app.ListActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ListView;

public class Csc591Activity extends ListActivity {
    /** Called when the activity is first created. */
	
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setListAdapter(new PermissionListAdapter(this));
    }
    
    @Override
    protected void onListItemClick(ListView l, View v, int position, long id) 
    {    
       ((PermissionListAdapter)getListAdapter()).toggle(position);
    }
}